import { Global, Module } from '@nestjs/common';
import { StarService } from './star.service';
import { StarController } from './star.controller';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Star } from './entities/star.entity';
import { Blog } from '../blog/entities/blog.entity';

@Global()
@Module({
  imports: [TypeOrmModule.forFeature([Star, Blog])],
  controllers: [StarController],
  providers: [StarService],
  exports: [StarService]
})
export class StarModule {}
